package com.yuanrui.practice.server.dao;

import com.yuanrui.practice.server.entity.po.PracticePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PracticeDao {
    void insert(PracticePO practicePO);

    void update(PracticePO practicePO);

    PracticePO selectById(Long practice);

    List<PracticePO> selectByCompleteStatus();

    Integer getUnCompleteCount(String loginId);

    List<PracticePO> getUnCompleteList(@Param("loginId") String loginId, @Param("start") int start, @Param("pageSize") Integer pageSize);

    void deleteById(Long practiceId);
}
